package com.ruoyi.quality.domain;

import java.math.BigDecimal;
import java.time.LocalDate;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 内部损失管理对象 quality_inner_loss
 *
 * @author wky
 * @date 2024-06-05
 */
@Schema(description = "内部损失管理对象")
public class QualityInnerLoss extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /**  */
    @Schema(title = "")
    private Long innerLossId;

    /** 物料名称 */
    @Schema(title = "物料名称")
    @Excel(name = "物料名称")
    private String materialName;

    /** 图号 */
    @Schema(title = "图号")
    @Excel(name = "图号")
    private String imageNumber;

    /** 不合格数量 */
    @Schema(title = "不合格数量")
    @Excel(name = "不合格数量")
    private Long unqualifiedCount;

    /** 措施 */
    @Schema(title = "措施")
    @Excel(name = "措施")
    private String measure;

    /** 单价 */
    @Schema(title = "单价")
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /** 损失时间 */
    @Schema(title = "损失时间")
    @Excel(name = "损失时间")
    private LocalDate lossTime;

    /** 废品损失 */
    @Schema(title = "废品损失")
    @Excel(name = "废品损失")
    private BigDecimal wasteLoss;

    /**  */
    @Schema(title = "")
    @Excel(name = "")
    private BigDecimal handlePrice;

    @Excel(name = "供应编号")
    private Long supplierId;

    @Excel(name = "客户编号")
    private Long customId;

    private Long materialId;

    public Long getMaterialId() {
        return materialId;
    }

    public void setMaterialId(Long materialId) {
        this.materialId = materialId;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Long getCustomId() {
        return customId;
    }

    public void setCustomId(Long customId) {
        this.customId = customId;
    }

    public void setInnerLossId(Long innerLossId)
    {
        this.innerLossId = innerLossId;
    }

    public Long getInnerLossId()
    {
        return innerLossId;
    }


    public void setMaterialName(String materialName)
    {
        this.materialName = materialName;
    }

    public String getMaterialName()
    {
        return materialName;
    }


    public void setImageNumber(String imageNumber)
    {
        this.imageNumber = imageNumber;
    }

    public String getImageNumber()
    {
        return imageNumber;
    }


    public void setUnqualifiedCount(Long unqualifiedCount)
    {
        this.unqualifiedCount = unqualifiedCount;
    }

    public Long getUnqualifiedCount()
    {
        return unqualifiedCount;
    }


    public void setMeasure(String measure)
    {
        this.measure = measure;
    }

    public String getMeasure()
    {
        return measure;
    }


    public void setUnitPrice(BigDecimal unitPrice)
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice()
    {
        return unitPrice;
    }


    public void setLossTime(LocalDate lossTime)
    {
        this.lossTime = lossTime;
    }

    public LocalDate getLossTime()
    {
        return lossTime;
    }


    public void setWasteLoss(BigDecimal wasteLoss)
    {
        this.wasteLoss = wasteLoss;
    }

    public BigDecimal getWasteLoss()
    {
        return wasteLoss;
    }


    public void setHandlePrice(BigDecimal handlePrice)
    {
        this.handlePrice = handlePrice;
    }

    public BigDecimal getHandlePrice()
    {
        return handlePrice;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("innerLossId", getInnerLossId())
            .append("materialName", getMaterialName())
            .append("imageNumber", getImageNumber())
            .append("unqualifiedCount", getUnqualifiedCount())
            .append("measure", getMeasure())
            .append("unitPrice", getUnitPrice())
            .append("lossTime", getLossTime())
            .append("wasteLoss", getWasteLoss())
            .append("handlePrice", getHandlePrice())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
